package com.zrrd.yt.product.controller;

import com.zrrd.yt.common.result.Result;
import com.zrrd.yt.model.product.BaseSaleAttr;
import com.zrrd.yt.product.service.BaseSaleAttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/product")
public class BaseSaleAttrController {

    @Autowired
    private BaseSaleAttrService baseSakeAttrService;

    //查询全部公共销售属性
    @GetMapping("/baseSaleAttrList")
    public Result<List<BaseSaleAttr>> baseSaleAttrList(){
        return Result.ok(baseSakeAttrService.list(null));
    }
}
